import * as tslib_1 from "tslib";
import { Entity, NgField, NgEntity } from '@farris/devkit';
var NewObject2Entity = /** @class */ (function (_super) {
    tslib_1.__extends(NewObject2Entity, _super);
    function NewObject2Entity() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgField({
            originalDataField: 'ID',
            dataField: 'id',
            primary: true,
            originalDataFieldType: 'String',
            initValue: '',
            path: 'ID',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject2Entity.prototype, "id", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'ParentID',
            dataField: 'parentID',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'ParentID',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject2Entity.prototype, "parentID", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'zsbh',
            dataField: 'zsbh',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'zsbh',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject2Entity.prototype, "zsbh", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'note2',
            dataField: 'note2',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'note2',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject2Entity.prototype, "note2", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'cjr2',
            dataField: 'cjr2',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'cjr2',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject2Entity.prototype, "cjr2", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'cjsj',
            dataField: 'cjsj',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'cjsj',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject2Entity.prototype, "cjsj", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'kssj2',
            dataField: 'kssj2',
            originalDataFieldType: 'Date',
            initValue: '0001-01-01T00:00:00',
            path: 'kssj2',
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject2Entity.prototype, "kssj2", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'jsrq2',
            dataField: 'jsrq2',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'jsrq2',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject2Entity.prototype, "jsrq2", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'zsje',
            dataField: 'zsje',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'zsje',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject2Entity.prototype, "zsje", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'zsts',
            dataField: 'zsts',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'zsts',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject2Entity.prototype, "zsts", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'zsdj',
            dataField: 'zsdj',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'zsdj',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject2Entity.prototype, "zsdj", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'sfybt2',
            dataField: 'sfybt2',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'sfybt2',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject2Entity.prototype, "sfybt2", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'btje2',
            dataField: 'btje2',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'btje2',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], NewObject2Entity.prototype, "btje2", void 0);
    NewObject2Entity = tslib_1.__decorate([
        NgEntity({
            originalCode: "newObject2",
            nodeCode: "newObject2s"
        })
    ], NewObject2Entity);
    return NewObject2Entity;
}(Entity));
export { NewObject2Entity };
